<%@ include file="connect.jsp" %>

<%
    String pert = request.getParameter("question");
    String Ans = request.getParameter("answer");
    String queID = request.getParameter("queID");
    String ganti = pert.replaceAll("'", "''");

    stat.executeUpdate("UPDATE DetailGames set Answer = '" + Ans + "' , Question = '" + ganti + "' where detailGamesID = '" + queID + "' ");
    conn.close();
    response.sendRedirect("games.jsp?respon=Question has been updated!");

%>
